<template>
  <div style="overflow-x: hidden; overflow-y: auto" v-if="locationList">
    <el-table
      :data="locationList"
      style="width: 100%"
      height="100px"
      v-adaptive
    >
      <el-table-column prop="longitude" label="经度"> </el-table-column>
      <el-table-column prop="latitude" label="纬度"> </el-table-column>
      <el-table-column prop="elevation" label="海拔"> </el-table-column>
      <el-table-column prop="eventDate" label="开始日期">
        <template slot-scope="scope">
          {{ formatDateT(scope.row.eventDate) }}
        </template>
      </el-table-column>
      <el-table-column prop="receivedDate" label="接收日期">
        <template slot-scope="scope">
          {{ formatDateT(scope.row.receivedDate) }}
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  props: {
    locationList: {
      type: Array,
      default: [],
    },
  },
  data() {
    return {};
  },
  mounted() {},
  methods: {
    formatDateT(date) {
      return formatTime(date);
    },
  },
};
import { formatTime } from "@/views/common/js/utils.js";
</script>

<style>
</style>
